﻿using AwesomeChromeFormUI.Configs;
using AwesomeChromeFormUI.Interfaces.Configs;
using CefSharp;

namespace AwesomeChromeFormUI.Interfaces.Implements
{
    public class CefConfigurationExecuter : IConfigurationExecuter
    {
        public void Execute()
        {
            CefConfiguration configuration = DefaultICefConfiger.CreateCustomCefConfiguration();
            Cef.Initialize(
                configuration.CefSettings, 
                performDependencyCheck: configuration.PerformDependencyCheck, 
                browserProcessHandler: configuration.BrowserProcessHandler
                );
        }
    }
}
